home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / frame_1 / PlaceObject2_840_807 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2011-06-09  |  389 b   |  14 lines

  1. onClipEvent(enterFrame){
  2.    this.gotoAndStop(1);
  3.    if(_root._currentframe == 14)
  4.    {
  5.       wait = random(500) + 1;
  6.       !(wait == 10 && wait2 > 100) ? wait2++ : this.gotoAndStop(6) and (wait2 = 0);
  7.    }
  8.    if(_root._currentframe == 4)
  9.    {
  10.       wait = random(500) + 1;
  11.       !(wait == 10 && wait2 > 100 && bell == 0) ? wait2++ : this.gotoAndStop(7) and (bell = 1);
  12.    }
  13. }
  14.